<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="../../../static/font-awesome-4.7.0/css/font-awesome.min.css" >
	<link rel="stylesheet" href="../../../static/vui/css/vui.css">
	<script type="text/javascript" src="../../../static/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="../../../static/layer/layer.js"></script>
	<script type="text/javascript" src="../../../static/laydate/laydate.js"></script>
	<script type="text/javascript" src="../../../static/js/common.js"></script>
	<script type="text/javascript" src="../../../static/vui/js/fixgrid.js"></script>
	<script type="text/javascript" src="../../../static/vui/js/vui.js"></script>
	<script type="text/javascript">
        var params = app.getRequestParams(),editable = true,oldData=null;
        var orderType = 3,orderText = '采购',codePrefix="CG",htmlName = "buy",thType=1;
	</script>
    <script type="text/javascript" src="../../../static/js/order/buttons.js"></script>
	<script type="text/javascript" src="../../../static/js/order/order.js"></script>
</head>
<body>
<div id="formArea">
	<div class="ctx-title">
		<div class="text"><b id="order_title"></b></div>
		<div class="buttons">
			<button class="button hide" id="do_reset"><span>新增采购单</span></button>
			<button class="button hide" id="do_ext_tdj"><span>新增采购退货单</span></button>
			<button class="button" id="do_save"><span>保存</span></button>
			<button class="button" id="do_examine"><span>审核</span></button>
			<button class="button hide" id="do_invalid"><span>反审核</span></button>
			<button class="button hide" id="do_remove"><span>删除</span></button>
			<button class="button" id="to_list"><span>历史单据</span></button>
		</div>
	</div>

	<table class="table">
		<tr>
			<td class="right">
				<label class="label required">供应商</label>
			</td>
			<td class="left">
				<div id="relationId"></div>
			</td>

			<td class="right">
				<label class="label required">单据日期</label>
			</td>
			<td class="left">
				<input type="text" class="input" name="order.date" readonly="readonly" id="order_date" autocomplete="off" placeholder="yyyy-MM-dd"/>
			</td>

		</tr>


	</table>
	<div id="fixtable"></div>

	<table class="table">
		<tr>
			<td style="width: 73px;">
				<label class="label">订单金额</label>
			</td>
			<td style="width: 240px;">
				<input type="number" readonly="readonly" n="money" value="0.00" class="input" name="order.dueMoney" autocomplete="off"/>
			</td>
			<td style="width: 73px;">
				<label class="label">本次付款</label>
			</td>
			<td>
				<input type="number" n="money" value="0.00" class="input" name="order.realMoney" autocomplete="off"/>
			</td>
			<td style="width: 73px;">
				<label class="label">优惠金额</label>
			</td>
			<td style="width: 240px;">
				<input type="number" n="money" value="0.00" class="input" name="order.discountMoney" autocomplete="off"/>
			</td>
		</tr>
		<tr>
			<td>
				<label class="label">本次欠款</label>
			</td>
			<td>
				<input type="number" n="money" value="0.00" readonly="readonly" class="input" name="order.debtMoney" autocomplete="off"/>
			</td>
			<td>
				<label class="label">结算账户</label>
			</td>
			<td>
				<div id="accountId"></div>
			</td>
			<td>
				<label class="label">采购费用</label>
			</td>
			<td>
				<input type="number" n="money" style="width:211px;" readonly="readonly" value="0.00" class="input" name="order.purPrice" autocomplete="off"/>
				<a id="fee_set" class="vui-opt vui-opt-edit">设置</a>
			</td>
		</tr>
		<tr>
			<td>
				<label class="label">订单备注</label>
			</td>
			<td colspan="5">
				<input type="text" maxlength="30" class="input" name="order.remarks"  style="width: 921px;" autocomplete="off" />
			</td>
		</tr>
	</table>

</div>

</body>
</html>